package com.c.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.c.entity.Menu;
import com.c.utils.PageResult;
import com.c.utils.QueryPageBean;
import com.c.utils.Result;

import java.util.List;

/**
 * @author wangxiangli
 * @create 2022-12-25-12:28
 */
public interface MenuService extends IService<Menu> {
    //通过用户名查询菜单
    List<Menu> findMenuByUsername(String username);

    //回显角色菜单信息
    Integer[] findMenuIdsByRoleId(Integer id);

    //菜单分页查询
    PageResult findByPage(QueryPageBean queryPageBean);

    //查询父菜单信息
    List<Menu> findAllParent();

    //增加菜单
    Result add(Menu menu);
    //编辑菜单
    void edit(Menu menu);
    //删除菜单
    Result deleteById(Integer id);
}
